﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using MetroFramework.Forms;
using System.IO;

namespace ConfigManager.ChildForms
{
    public partial class FormSelectFolder : MetroForm
    {
        public FormSelectFolder()
        {
            InitializeComponent();
        }



        private void buttonOK_Click(object sender, EventArgs e)
        {
            if (textBoxPath.Text.Trim().Length == 0)
            {

            }
            else if (File.Exists(textBoxPath.Text.Trim()))
            {
                //MetroM.Show();
            }
            this.DialogResult = System.Windows.Forms.DialogResult.OK;
            this.Close();
        }

        private void buttonCancell_Click(object sender, EventArgs e)
        {
            this.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.Close();
        }
    }
}
